<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html class="zh-cn zh cn" lang="zh-cn">
<head>
 	<%@ include file="../head.jsp" %>
</head>
<body class="vday home">
	<div id="page">
	<%@ include file="../global_navi.jsp" %>
	<%@ include file="../aos_header.jsp" %><!-- 如果需要查询，要自定义aos_header -->
 	<%@ include file="../guide.jsp" %><!-- 动态向导栏，需要后台 --> 
		<div id="primary">
			<div id="primary_main" role="main">
				<div class="box featured-accessories">
					<div class="title-bar">
						<h2>模板列表</h2>
					</div>
					<div class="box-content clearfix">
						<c:if test="${fn:length(settingList) == 0 }">
							没有参数模板,请<a href="/setting/create">创建</a>
						</c:if>
						<div class="product-grid">
							<c:forEach items="${settingList}" var="setting" varStatus="status">
								<c:if test="${status.index % 4 == 0}">
									<c:if test="${status.index + 4 >= fn:length(settingList)}">
										<ul class="product-row clearfix last-row">
									</c:if>
									<c:if test="${status.index + 4 < fn:length(settingList)}">
										<ul class="product-row clearfix first-row">
									</c:if>
								</c:if>
								<li class="product first-tile">
								<dl>
									<dt class="name">
										<a class="superlink" href="/setting/set_${setting.id}" onclick="singleLoading();">
										${setting.name}</a>
									</dt>
									<dd class="price">
										<span class="current_price">状态: <font color="red">
											<c:if test="${map[setting.id]}">
												已使用
											</c:if>
											<c:if test="${!map[setting.id]}">
												未使用
											</c:if>
										</font></span><br />
									</dd>
									<dd class="price">
										<span class="current_price">强度: <em>${setting.aI}</em></span><br />
									</dd>
									<dd class="price">
										操作:<a href="/setting/edit_${setting.id}" style="color: green;padding-left: 5px;" onclick="singleLoading();">
										编辑</a>&nbsp;&nbsp;
										<c:if test="${!map[setting.id]}">
											<a href="/setting/del_${setting.id}" style="color: red;" onclick="singleLoading();">删除</a>
										</c:if>
										<br />
									</dd>
									<dd class="price">
										<span class="current_price">最后更新:
											<fmt:formatDate value="${setting.lastModifyTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
										</span>
									</dd>
								</dl>
								</li>
								<c:if test="${status.index % 4 == 3}">
									</ul>
								</c:if>
							</c:forEach>
						</div>
					</div>
					<div class="bottom-corners"></div>
				</div>
			</div> 
			<div id="secondary" class="rail"> 
				<div role="navigation" aria-label="New Items" class="box navigation-list new-to-store">
					<div class="title-bar">
						<h2>分类</h2>
					</div>
					<div class="box-content clearfix">
						<div class="list_content">
						<ul>
							<li><a href="/setting/usedList" onclick="singleLoading();" >已使用</a></li>
							<li><a href="/setting/unUsedList" onclick="singleLoading();" >未使用</a></li>
						</ul>
						</div>
					</div>
					<div class="bottom-corners"></div>
				</div>
				<div class="box navigation-list top-sellers"></div>
				<div class="module footerblock"></div>
			</div>
		</div>
	<%@ include file="../left_navi.jsp" %>
	<%@ include file="../footer.jsp" %>
	</div>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function(){
	//设置当前路径
	jQuery("#breadcrumb").append('<li><span>:&nbsp;&nbsp;模板列表察看</span></li>');
});
function singleLoading(){
    jQuery("#nyroDiv a").nmCall();
}
//]]>
</script>
</body>
</html>